/*
 * @Author: lineCode 1145938682@qq.com
 * @Date: 2025-06-26 16:55:14
 * @LastEditors: lineCode 1145938682@qq.com
 * @LastEditTime: 2025-06-28 16:29:40
 * @FilePath: /backend/shorthand-go/dao/resource/const.go
 */
package resource

type Conf struct {
	App struct {
		Name string `yaml:"name"`
		Port int    `yaml:"port"`
	}
	Mysql struct {
		DSN          string `yaml:"dsn"`
		MaxIdleConns int    `yaml:"max_idle_conns"`
		MaxOpenConns int    `yaml:"max_open_conns"`
	}
	Nacos struct {
		ServerAddr string `yaml:"server_addr"`
		Namespace  string `yaml:"namespace"`
		DataID     string `yaml:"data_id"`
		Group      string `yaml:"group"`
		Timeout    int    `yaml:"timeout"`
		Username   string `yaml:"username"`
		Password   string `yaml:"password"`
		LogDir     string `yaml:"log_dir"`
	}
	Log struct {
		Level     string `yaml:"level"`
		Filename  string `yaml:"filename"`
		MaxSize   int    `yaml:"max_size"`
		MaxBackup int    `yaml:"max_backup"`
		MaxAge    int    `yaml:"max_age"`
		Compress  bool   `yaml:"compress"`
	}
}
